package com.suse.lzj.demo.domain;

import java.util.ArrayList;
import java.util.List;

public class HomeStayExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HomeStayExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHomestayIdIsNull() {
            addCriterion("homestay_id is null");
            return (Criteria) this;
        }

        public Criteria andHomestayIdIsNotNull() {
            addCriterion("homestay_id is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayIdEqualTo(Integer value) {
            addCriterion("homestay_id =", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdNotEqualTo(Integer value) {
            addCriterion("homestay_id <>", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdGreaterThan(Integer value) {
            addCriterion("homestay_id >", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("homestay_id >=", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdLessThan(Integer value) {
            addCriterion("homestay_id <", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdLessThanOrEqualTo(Integer value) {
            addCriterion("homestay_id <=", value, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdIn(List<Integer> values) {
            addCriterion("homestay_id in", values, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdNotIn(List<Integer> values) {
            addCriterion("homestay_id not in", values, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdBetween(Integer value1, Integer value2) {
            addCriterion("homestay_id between", value1, value2, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("homestay_id not between", value1, value2, "homestayId");
            return (Criteria) this;
        }

        public Criteria andHomestayNameIsNull() {
            addCriterion("homestay_name is null");
            return (Criteria) this;
        }

        public Criteria andHomestayNameIsNotNull() {
            addCriterion("homestay_name is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayNameEqualTo(String value) {
            addCriterion("homestay_name =", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameNotEqualTo(String value) {
            addCriterion("homestay_name <>", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameGreaterThan(String value) {
            addCriterion("homestay_name >", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameGreaterThanOrEqualTo(String value) {
            addCriterion("homestay_name >=", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameLessThan(String value) {
            addCriterion("homestay_name <", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameLessThanOrEqualTo(String value) {
            addCriterion("homestay_name <=", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameLike(String value) {
            addCriterion("homestay_name like", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameNotLike(String value) {
            addCriterion("homestay_name not like", value, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameIn(List<String> values) {
            addCriterion("homestay_name in", values, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameNotIn(List<String> values) {
            addCriterion("homestay_name not in", values, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameBetween(String value1, String value2) {
            addCriterion("homestay_name between", value1, value2, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayNameNotBetween(String value1, String value2) {
            addCriterion("homestay_name not between", value1, value2, "homestayName");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressIsNull() {
            addCriterion("homestay_address is null");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressIsNotNull() {
            addCriterion("homestay_address is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressEqualTo(String value) {
            addCriterion("homestay_address =", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressNotEqualTo(String value) {
            addCriterion("homestay_address <>", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressGreaterThan(String value) {
            addCriterion("homestay_address >", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressGreaterThanOrEqualTo(String value) {
            addCriterion("homestay_address >=", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressLessThan(String value) {
            addCriterion("homestay_address <", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressLessThanOrEqualTo(String value) {
            addCriterion("homestay_address <=", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressLike(String value) {
            addCriterion("homestay_address like", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressNotLike(String value) {
            addCriterion("homestay_address not like", value, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressIn(List<String> values) {
            addCriterion("homestay_address in", values, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressNotIn(List<String> values) {
            addCriterion("homestay_address not in", values, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressBetween(String value1, String value2) {
            addCriterion("homestay_address between", value1, value2, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayAddressNotBetween(String value1, String value2) {
            addCriterion("homestay_address not between", value1, value2, "homestayAddress");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceIsNull() {
            addCriterion("homestay_price is null");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceIsNotNull() {
            addCriterion("homestay_price is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceEqualTo(Long value) {
            addCriterion("homestay_price =", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceNotEqualTo(Long value) {
            addCriterion("homestay_price <>", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceGreaterThan(Long value) {
            addCriterion("homestay_price >", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceGreaterThanOrEqualTo(Long value) {
            addCriterion("homestay_price >=", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceLessThan(Long value) {
            addCriterion("homestay_price <", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceLessThanOrEqualTo(Long value) {
            addCriterion("homestay_price <=", value, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceIn(List<Long> values) {
            addCriterion("homestay_price in", values, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceNotIn(List<Long> values) {
            addCriterion("homestay_price not in", values, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceBetween(Long value1, Long value2) {
            addCriterion("homestay_price between", value1, value2, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPriceNotBetween(Long value1, Long value2) {
            addCriterion("homestay_price not between", value1, value2, "homestayPrice");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1IsNull() {
            addCriterion("homestay_pic1 is null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1IsNotNull() {
            addCriterion("homestay_pic1 is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1EqualTo(String value) {
            addCriterion("homestay_pic1 =", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1NotEqualTo(String value) {
            addCriterion("homestay_pic1 <>", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1GreaterThan(String value) {
            addCriterion("homestay_pic1 >", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1GreaterThanOrEqualTo(String value) {
            addCriterion("homestay_pic1 >=", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1LessThan(String value) {
            addCriterion("homestay_pic1 <", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1LessThanOrEqualTo(String value) {
            addCriterion("homestay_pic1 <=", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1Like(String value) {
            addCriterion("homestay_pic1 like", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1NotLike(String value) {
            addCriterion("homestay_pic1 not like", value, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1In(List<String> values) {
            addCriterion("homestay_pic1 in", values, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1NotIn(List<String> values) {
            addCriterion("homestay_pic1 not in", values, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1Between(String value1, String value2) {
            addCriterion("homestay_pic1 between", value1, value2, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic1NotBetween(String value1, String value2) {
            addCriterion("homestay_pic1 not between", value1, value2, "homestayPic1");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2IsNull() {
            addCriterion("homestay_pic2 is null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2IsNotNull() {
            addCriterion("homestay_pic2 is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2EqualTo(String value) {
            addCriterion("homestay_pic2 =", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2NotEqualTo(String value) {
            addCriterion("homestay_pic2 <>", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2GreaterThan(String value) {
            addCriterion("homestay_pic2 >", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2GreaterThanOrEqualTo(String value) {
            addCriterion("homestay_pic2 >=", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2LessThan(String value) {
            addCriterion("homestay_pic2 <", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2LessThanOrEqualTo(String value) {
            addCriterion("homestay_pic2 <=", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2Like(String value) {
            addCriterion("homestay_pic2 like", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2NotLike(String value) {
            addCriterion("homestay_pic2 not like", value, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2In(List<String> values) {
            addCriterion("homestay_pic2 in", values, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2NotIn(List<String> values) {
            addCriterion("homestay_pic2 not in", values, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2Between(String value1, String value2) {
            addCriterion("homestay_pic2 between", value1, value2, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic2NotBetween(String value1, String value2) {
            addCriterion("homestay_pic2 not between", value1, value2, "homestayPic2");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3IsNull() {
            addCriterion("homestay_pic3 is null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3IsNotNull() {
            addCriterion("homestay_pic3 is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3EqualTo(String value) {
            addCriterion("homestay_pic3 =", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3NotEqualTo(String value) {
            addCriterion("homestay_pic3 <>", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3GreaterThan(String value) {
            addCriterion("homestay_pic3 >", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3GreaterThanOrEqualTo(String value) {
            addCriterion("homestay_pic3 >=", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3LessThan(String value) {
            addCriterion("homestay_pic3 <", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3LessThanOrEqualTo(String value) {
            addCriterion("homestay_pic3 <=", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3Like(String value) {
            addCriterion("homestay_pic3 like", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3NotLike(String value) {
            addCriterion("homestay_pic3 not like", value, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3In(List<String> values) {
            addCriterion("homestay_pic3 in", values, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3NotIn(List<String> values) {
            addCriterion("homestay_pic3 not in", values, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3Between(String value1, String value2) {
            addCriterion("homestay_pic3 between", value1, value2, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic3NotBetween(String value1, String value2) {
            addCriterion("homestay_pic3 not between", value1, value2, "homestayPic3");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4IsNull() {
            addCriterion("homestay_pic4 is null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4IsNotNull() {
            addCriterion("homestay_pic4 is not null");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4EqualTo(String value) {
            addCriterion("homestay_pic4 =", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4NotEqualTo(String value) {
            addCriterion("homestay_pic4 <>", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4GreaterThan(String value) {
            addCriterion("homestay_pic4 >", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4GreaterThanOrEqualTo(String value) {
            addCriterion("homestay_pic4 >=", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4LessThan(String value) {
            addCriterion("homestay_pic4 <", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4LessThanOrEqualTo(String value) {
            addCriterion("homestay_pic4 <=", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4Like(String value) {
            addCriterion("homestay_pic4 like", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4NotLike(String value) {
            addCriterion("homestay_pic4 not like", value, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4In(List<String> values) {
            addCriterion("homestay_pic4 in", values, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4NotIn(List<String> values) {
            addCriterion("homestay_pic4 not in", values, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4Between(String value1, String value2) {
            addCriterion("homestay_pic4 between", value1, value2, "homestayPic4");
            return (Criteria) this;
        }

        public Criteria andHomestayPic4NotBetween(String value1, String value2) {
            addCriterion("homestay_pic4 not between", value1, value2, "homestayPic4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}